package com.ruoyi.repurchase.mapper;

import java.util.List;
import com.ruoyi.repurchase.domain.RePurchase;

/**
 * 商品退货Mapper接口
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
public interface RePurchaseMapper 
{
    /**
     * 查询商品退货
     * 
     * @param id 商品退货主键
     * @return 商品退货
     */
    public RePurchase selectRePurchaseById(Integer id);

    /**
     * 查询商品退货列表
     * 
     * @param rePurchase 商品退货
     * @return 商品退货集合
     */
    public List<RePurchase> selectRePurchaseList(RePurchase rePurchase);

    /**
     * 新增商品退货
     * 
     * @param rePurchase 商品退货
     * @return 结果
     */
    public int insertRePurchase(RePurchase rePurchase);

    /**
     * 修改商品退货
     * 
     * @param rePurchase 商品退货
     * @return 结果
     */
    public int updateRePurchase(RePurchase rePurchase);

    /**
     * 删除商品退货
     * 
     * @param id 商品退货主键
     * @return 结果
     */
    public int deleteRePurchaseById(Integer id);

    /**
     * 批量删除商品退货
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRePurchaseByIds(Integer[] ids);
}
